import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Header from '@/components/Header'
import Index from '@/components/Index'
import Article from '@/components/Article'
import Footer from '@/components/Footer'
import Register from '@/components/Register'
import User from '@/components/User'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/user',
      name: 'User',
      component: User
    },
    {
      path: '/article',
      name: 'Article',
      component: Article
    },
    {
      path: '/Footer',
      name: 'Footer',
      component: Footer
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/header',
      name: 'Header',
      component: Header
    }
  ]
})
